/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameMenuPrincipal.java
 *
 * Created on 12/11/2011, 19:57:54
 */
package gui;

import gui.estoque.JFrameTableEstoque;
import gui.fiscal.JFrameNovaCompra;
import gui.fiscal.JFrameNovaVenda;
import gui.fiscal.JFrameTableFiscalItemCompra;
import gui.fiscal.JFrameTableFiscalItemVenda;
import gui.pessoa.JFrameTableCadastroCliente;
import gui.pessoa.JFrameTableCadastroFornecedor;
import gui.pessoa.JFrameTableCadastroFuncionario;

/**
 *
 * @author dyego
 */
public class JFrameMenuPrincipal extends javax.swing.JFrame {

    /** Creates new form JFrameMenuPrincipal */
    public JFrameMenuPrincipal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBarPrincipal = new javax.swing.JMenuBar();
        jMenuFiscal = new javax.swing.JMenu();
        jMenuFiscalItemVenda = new javax.swing.JMenuItem();
        jMenuFiscaItemCompra = new javax.swing.JMenuItem();
        jMenuEstoque = new javax.swing.JMenu();
        jMenuEstoqueItemProduto = new javax.swing.JMenuItem();
        jMenuCadastro = new javax.swing.JMenu();
        jMenuCadastroItemCliente = new javax.swing.JMenuItem();
        jMenuCadastroItemFornecedor = new javax.swing.JMenuItem();
        jMenuCadastroItemFuncionario = new javax.swing.JMenuItem();
        jSenha = new javax.swing.JMenu();
        jMenuSenhaItemMudarSenha = new javax.swing.JMenuItem();
        jMenuAjuda = new javax.swing.JMenu();
        jMenuAjudaItemSobre = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jMenuFiscal.setText("Fiscal");

        jMenuFiscalItemVenda.setText("Venda");
        jMenuFiscalItemVenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFiscalItemVendaActionPerformed(evt);
            }
        });
        jMenuFiscal.add(jMenuFiscalItemVenda);

        jMenuFiscaItemCompra.setText("Compra");
        jMenuFiscaItemCompra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFiscaItemCompraActionPerformed(evt);
            }
        });
        jMenuFiscal.add(jMenuFiscaItemCompra);

        jMenuBarPrincipal.add(jMenuFiscal);

        jMenuEstoque.setText("Estoque");

        jMenuEstoqueItemProduto.setText("Produto");
        jMenuEstoqueItemProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuEstoqueItemProdutoActionPerformed(evt);
            }
        });
        jMenuEstoque.add(jMenuEstoqueItemProduto);

        jMenuBarPrincipal.add(jMenuEstoque);

        jMenuCadastro.setText("Cadastro");

        jMenuCadastroItemCliente.setText("Cliente");
        jMenuCadastroItemCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuCadastroItemClienteActionPerformed(evt);
            }
        });
        jMenuCadastro.add(jMenuCadastroItemCliente);

        jMenuCadastroItemFornecedor.setText("Fornecedor");
        jMenuCadastroItemFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuCadastroItemFornecedorActionPerformed(evt);
            }
        });
        jMenuCadastro.add(jMenuCadastroItemFornecedor);

        jMenuCadastroItemFuncionario.setText("Funcionário");
        jMenuCadastroItemFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuCadastroItemFuncionarioActionPerformed(evt);
            }
        });
        jMenuCadastro.add(jMenuCadastroItemFuncionario);

        jMenuBarPrincipal.add(jMenuCadastro);

        jSenha.setText("Senha");

        jMenuSenhaItemMudarSenha.setText("Mudar Senha");
        jMenuSenhaItemMudarSenha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuSenhaItemMudarSenhaActionPerformed(evt);
            }
        });
        jSenha.add(jMenuSenhaItemMudarSenha);

        jMenuBarPrincipal.add(jSenha);

        jMenuAjuda.setText("Ajuda");

        jMenuAjudaItemSobre.setText("Sobre");
        jMenuAjudaItemSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuAjudaItemSobreActionPerformed(evt);
            }
        });
        jMenuAjuda.add(jMenuAjudaItemSobre);

        jMenuBarPrincipal.add(jMenuAjuda);

        setJMenuBar(jMenuBarPrincipal);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1275, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 568, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jMenuFiscalItemVendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFiscalItemVendaActionPerformed
    new JFrameNovaVenda().setVisible(true);
}//GEN-LAST:event_jMenuFiscalItemVendaActionPerformed

private void jMenuFiscaItemCompraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFiscaItemCompraActionPerformed
    new JFrameNovaCompra().setVisible(true);
}//GEN-LAST:event_jMenuFiscaItemCompraActionPerformed

private void jMenuEstoqueItemProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuEstoqueItemProdutoActionPerformed
    new JFrameTableEstoque().setVisible(true);
}//GEN-LAST:event_jMenuEstoqueItemProdutoActionPerformed

private void jMenuCadastroItemClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuCadastroItemClienteActionPerformed
    new JFrameTableCadastroCliente().setVisible(true);
}//GEN-LAST:event_jMenuCadastroItemClienteActionPerformed

private void jMenuCadastroItemFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuCadastroItemFornecedorActionPerformed
    new JFrameTableCadastroFornecedor().setVisible(true);
}//GEN-LAST:event_jMenuCadastroItemFornecedorActionPerformed

private void jMenuCadastroItemFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuCadastroItemFuncionarioActionPerformed
    new JFrameTableCadastroFuncionario().setVisible(true);
}//GEN-LAST:event_jMenuCadastroItemFuncionarioActionPerformed

private void jMenuSenhaItemMudarSenhaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuSenhaItemMudarSenhaActionPerformed
    new JFrameMudarSenha().setVisible(true);
}//GEN-LAST:event_jMenuSenhaItemMudarSenhaActionPerformed

private void jMenuAjudaItemSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuAjudaItemSobreActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jMenuAjudaItemSobreActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFrameMenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFrameMenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFrameMenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFrameMenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameMenuPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenuAjuda;
    private javax.swing.JMenuItem jMenuAjudaItemSobre;
    private javax.swing.JMenuBar jMenuBarPrincipal;
    private javax.swing.JMenu jMenuCadastro;
    private javax.swing.JMenuItem jMenuCadastroItemCliente;
    private javax.swing.JMenuItem jMenuCadastroItemFornecedor;
    private javax.swing.JMenuItem jMenuCadastroItemFuncionario;
    private javax.swing.JMenu jMenuEstoque;
    private javax.swing.JMenuItem jMenuEstoqueItemProduto;
    private javax.swing.JMenuItem jMenuFiscaItemCompra;
    private javax.swing.JMenu jMenuFiscal;
    private javax.swing.JMenuItem jMenuFiscalItemVenda;
    private javax.swing.JMenuItem jMenuSenhaItemMudarSenha;
    private javax.swing.JMenu jSenha;
    // End of variables declaration//GEN-END:variables
}
